import java.util.*;

public class TestMasterExam{
	public static void main(String [] a){
		//Queue <String> x = new PriorityQueue<String>();
		LinkedList <String> x =  new LinkedList <String>();//LinkedList implementa a interface Queue ou a classe?
		x.add("One");
		x.add("two");
		x.add("Two");
		System.out.println(x.poll());
	}
}